# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-genesis-plus-gx
pkgver=0_git20220417
pkgrel=0
_commit="7520ac8aae7b08262c0472e724e6ef0bfe41d285"
pkgdesc="an enhanced port of Genesis Plus"
url="https://github.com/libretro/Genesis-Plus-GX"
arch="all"
license="custom"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/Genesis-Plus-GX/archive/$_commit.tar.gz"
builddir="$srcdir/Genesis-Plus-GX-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 genesis_plus_gx_libretro.so "$pkgdir"/usr/lib/libretro/genesis_plus_gx_libretro.so
}

sha512sums="
e2501c09162146a293cfde6bfde6e87ea8395db416a2190c5f8376b5e9cdfe3138e13edf63dfddb10e620191521a2da87abfad84ee84695c8e5780b405449a09  libretro-genesis-plus-gx-7520ac8aae7b08262c0472e724e6ef0bfe41d285.tar.gz
"
